Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



int 21 02 int 21 dos interrupt 21h function 02 Display Character


Home  > 8086  > interrupt list  > int 21 dos services interrupt  > int 21 02 int 21 dos interrupt 21h function 02 Display Character 
       
Int 21 function 02H

Here is  simple prorgam to display a character. 
    mov ah,2
    mov dl,'A'
    int 21h



 
Display a string of characters. there are better methods like write directly to memory,  check the main 8086 area for the same.

    msg     db  1,2,3,"Hello World This is a test",13,10,"$"
    len     equ $-msg

            mov si, offset msg
            mov cx, len
            
    do:     mov dl, [si]

    	

            mov ah, 2     ;Display Character
            int 21h

    	21-09.gif (1068 bytes)

            inc si
            loop do


  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam